package com.dc.entity;
/**
 * comments实体类与表comments对应
 * @author jesslos
 *
 */
public class Comments {
	//属性
	private int commentsid;//评价编号
	private int orderid;//订单号
	private int userid;//用户编号
	private int shopid;//商家编号
	private String commentsinfo;//评价内容
	private String commentstime;//评价时间
	private boolean ifanswered;//是否回复
	private String answertime;//回复时间
	private String shopanswer;//回复内容
	private String commentsnum;//评价数量
	/**
	 * 无参构造
	 */
	public Comments() {
		super();
	}
	/**
	 * 有参
	 * @param commentsid
	 * @param orderid
	 * @param userid
	 * @param shopid
	 * @param commentsinfo
	 * @param commentstime
	 * @param ifanswered
	 * @param answertime
	 * @param shopanswer
	 * @param commentsnum
	 */
	public Comments(int commentsid, int orderid, int userid, int shopid, String commentsinfo, String commentstime,
			boolean ifanswered, String answertime, String shopanswer, String commentsnum) {
		super();
		this.commentsid = commentsid;
		this.orderid = orderid;
		this.userid = userid;
		this.shopid = shopid;
		this.commentsinfo = commentsinfo;
		this.commentstime = commentstime;
		this.ifanswered = ifanswered;
		this.answertime = answertime;
		this.shopanswer = shopanswer;
		this.commentsnum = commentsnum;
	}
	/**
	 * 有参
	 * @param commentsid
	 * @param orderid
	 * @param userid
	 * @param shopid
	 * @param commentsinfo
	 * @param commentstime
	 * @param ifanswered
	 * @param answertime
	 * @param shopanswer
	 * @param commentsnum
	 */
	public Comments(int orderid, int userid, int shopid, String commentsinfo, String commentstime,
			boolean ifanswered, String answertime, String shopanswer, String commentsnum) {
		super();
		this.orderid = orderid;
		this.userid = userid;
		this.shopid = shopid;
		this.commentsinfo = commentsinfo;
		this.commentstime = commentstime;
		this.ifanswered = ifanswered;
		this.answertime = answertime;
		this.shopanswer = shopanswer;
		this.commentsnum = commentsnum;
	}
	/**
	 * 有参
	 * @param commentsid
	 * @param commentsinfo
	 * @param commentstime
	 * @param ifanswered
	 * @param answertime
	 * @param shopanswer
	 * @param commentsnum
	 */
	public Comments(int commentsid,String commentsinfo, String commentstime,
			boolean ifanswered, String answertime, String shopanswer, String commentsnum) {
		super();
		this.commentsid = commentsid;
		this.commentsinfo = commentsinfo;
		this.commentstime = commentstime;
		this.ifanswered = ifanswered;
		this.answertime = answertime;
		this.shopanswer = shopanswer;
		this.commentsnum = commentsnum;
	}
	/**
	 * @return the commentsid
	 */
	public int getCommentsid() {
		return commentsid;
	}
	/**
	 * @param commentsid the commentsid to set
	 */
	public void setCommentsid(int commentsid) {
		this.commentsid = commentsid;
	}
	/**
	 * @return the orderid
	 */
	public int getOrderid() {
		return orderid;
	}
	/**
	 * @param orderid the orderid to set
	 */
	public void setOrderid(int orderid) {
		this.orderid = orderid;
	}
	/**
	 * @return the userid
	 */
	public int getUserid() {
		return userid;
	}
	/**
	 * @param userid the userid to set
	 */
	public void setUserid(int userid) {
		this.userid = userid;
	}
	/**
	 * @return the shopid
	 */
	public int getShopid() {
		return shopid;
	}
	/**
	 * @param shopid the shopid to set
	 */
	public void setShopid(int shopid) {
		this.shopid = shopid;
	}
	/**
	 * @return the commentsinfo
	 */
	public String getCommentsinfo() {
		return commentsinfo;
	}
	/**
	 * @param commentsinfo the commentsinfo to set
	 */
	public void setCommentsinfo(String commentsinfo) {
		this.commentsinfo = commentsinfo;
	}
	/**
	 * @return the commentstime
	 */
	public String getCommentstime() {
		return commentstime;
	}
	/**
	 * @param commentstime the commentstime to set
	 */
	public void setCommentstime(String commentstime) {
		this.commentstime = commentstime;
	}
	/**
	 * @return the ifanswered
	 */
	public boolean isIfanswered() {
		return ifanswered;
	}
	/**
	 * @param ifanswered the ifanswered to set
	 */
	public void setIfanswered(boolean ifanswered) {
		this.ifanswered = ifanswered;
	}
	/**
	 * @return the answertime
	 */
	public String getAnswertime() {
		return answertime;
	}
	/**
	 * @param answertime the answertime to set
	 */
	public void setAnswertime(String answertime) {
		this.answertime = answertime;
	}
	/**
	 * @return the shopanswer
	 */
	public String getShopanswer() {
		return shopanswer;
	}
	/**
	 * @param shopanswer the shopanswer to set
	 */
	public void setShopanswer(String shopanswer) {
		this.shopanswer = shopanswer;
	}
	/**
	 * @return the commentsnum
	 */
	public String getCommentsnum() {
		return commentsnum;
	}
	/**
	 * @param commentsnum the commentsnum to set
	 */
	public void setCommentsnum(String commentsnum) {
		this.commentsnum = commentsnum;
	}
	@Override
	public String toString() {
		return "Comments [commentsid=" + commentsid + ", orderid=" + orderid + ", userid=" + userid + ", shopid="
				+ shopid + ", commentsinfo=" + commentsinfo + ", commentstime=" + commentstime + ", ifanswered="
				+ ifanswered + ", answertime=" + answertime + ", shopanswer=" + shopanswer + ", commentsnum="
				+ commentsnum + "]";
	}
	
}
